package mju.cxf.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author 王鑫
 * @since 2024-10-30
 */
@ApiModel(description = "评论数据传输对象")
@Data
public class CommentsDTO {


    @ApiModelProperty("评论id")
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("员工id")
    private Integer employeeId;

    @ApiModelProperty("审核员工编号")
    private String empNumber;

    @ApiModelProperty("商品id")
    private Integer productId;

//    @ApiModelProperty("订单id")
//    private Integer orderId;

    @ApiModelProperty("评论商品名称")
    private String name;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("评论时间")
    private LocalDateTime commentTime;

    @ApiModelProperty("图片")
    private String picture;

    private Integer likes;

    @ApiModelProperty("状态 0待审核，1已审核")
    private Integer status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(LocalDateTime commentTime) {
        this.commentTime = commentTime;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Comments{" +
        "id=" + id +
        ", userId=" + userId +
        ", employeeId=" + employeeId +
        ", productId=" + productId +
        ", content=" + content +
        ", commentTime=" + commentTime +
        ", picture=" + picture +
        ", likes=" + likes +
        ", status=" + status +
        "}";
    }
}
